package com.xgq.drink.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user_role")
public class UserRole {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long userId;        // 用户ID
    private Long roleId;        // 角色ID
    private Long brandId;       // 品牌ID（如果是品牌相关角色）
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}